package io.renren.modules.school.dao;

import io.renren.modules.school.entity.*;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author xuebing
 * @email xuebinggod@163.com
 * @date 2018-10-11 19:12:15
 */
public interface SchoolDao extends BaseMapper<SchoolEntity> {

    List getSchoolList();

    List getAreaList();

    List<LowscoreEntity> getListBySchoolId(Integer id);

    LowscoreEntity getLowscoreEntityByYear(LowscoreEntity school);

    void insertLowScore(LowscoreEntity school);

    void deleteLowScore(Integer id);

    List getUniversitys(Map<String, Object> params);

    void updateLearnType(UniversityEntity u);

    List getLastYearScore(Map<String, Object> params);

    List getSchoolPredictorList();

    LowscoreEntity getLowscoreBySchoolId(Integer id);

    void updateSchoolPredictor(SchoolPredictor s);

    List<UniversityEntity> getAllUniversitys();

    List<LowscoreEntity> getLastYearScoreBySchoolId(@Param("years") String years,@Param("id") int id);

    List<SchoolEntity> getSchoolTreeList();
}
